package com.fauks.gmall.service;

import com.fauks.gmall.bean.UmsMember;
import com.fauks.gmall.bean.UmsMemberReceiveAddress;

import java.util.List;

public interface UserService {

    /**
     * 查询所有会员
     *
     * @return
     */
    List<UmsMember> getAllMember();

    /**
     * 获取用户所有收货地址
     *
     * @param memberId
     * @return
     */
    List<UmsMemberReceiveAddress> getReceiveAddressByMemberId(String memberId);

    UmsMember login(UmsMember umsMember);

    /**
     * 存储token
     * @param token
     * @param id
     */
    void addUserToken(String token, String id);
}
